package com.taotao.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.jms.annotation.EnableJms;


@SpringBootApplication
@EnableEurekaClient
//@EnableFeignClients
@EnableJms
@ComponentScan(basePackages = "com.taotao")
//@ImportResource(locations = {"classpath:applicationContext.xml"})
public class TaotaoItemApplication extends SpringBootServletInitializer {
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(TaotaoItemApplication.class);
    }

    public static void main(String[] args) {

        SpringApplication.run(TaotaoItemApplication.class, args);

        System.out.println("TaotaoItemApplication 启动成功！");
    }
}
